import redis
from flask import current_app


class RedisTool:
    rds = None

    def __init__(self):
        host =current_app.config.get('REDIS_HOST')
        port=current_app.config.get('REDIS_PORT')
        self.rds=redis.Redis(host,port)
